package com.nut.spp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nut.spp.common.BaseEntity;
import lombok.Data;

/**
 * 商品详情表
 */
@Data
@TableName("biz_goods_detail")
public class GoodsDetail extends BaseEntity {

    @TableId(type = IdType.INPUT)
    private Integer id;

    //轮播图
    private String slider;

    //详情
    private String content;

    //填充
    public void filled(Goods goods) {
        goods.setSlider(slider);
        goods.setContent(content);
    }

}
